package org.example.DAO;

import org.example.Model.student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jmx.export.annotation.ManagedResource;

import javax.annotation.Resource;
import java.util.List;

public abstract class AbstractstudentDAO implements studentDAO{
    List<student> students;
    JdbcTemplate jdbcTemplate;
    @Resource(name="list")
    public  void setStudents(List <student> students){
        this.students=students;
    }
    @Autowired
    public  void setJdbcTemplate(JdbcTemplate jdbcTemplate){
        this.jdbcTemplate=jdbcTemplate;
    }

    @Override
    public void insertstu(student stu) {

    }

    @Override
    public void modifystu(student stu) {

    }

    @Override
    public List<student> queryAll() {
        return null;
    }

    @Override
    public void insertAll(List<student> bookList) {

    }

    @Override
    public void deletestu(student stu) {

    }

    @Override
    public void deleteAll(List<student> bookList) {

    }

    @Override
    public void deleteById(String id) {

    }

    @Override
    public student queryOnestu(student stu) {
        return null;
    }

    @Override
    public student queryOnestuById(String id) {
        return null;
    }
}
